package com.course;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.core.env.ConfigurableEnvironment;

/**
 * eureka 应用程序
 *
 * @author Feel
 * @date 2021/09/28
 */
@EnableEurekaClient
@MapperScan("com.course.server.mapper")
@SpringBootApplication
public class SystemApplication {


    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(SystemApplication.class);
        ConfigurableEnvironment environment = app.run(args).getEnvironment();
        System.out.println("---------------------------启动成功-------------------------------");
        System.out.println("  启动成功！System  地址 http://localhost:" + environment.getProperty("server.port"));
        System.out.println("---------------------------启动成功-------------------------------");

    }

}
